package com.apabi.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by huhu on 2018/1/18.
 */
public interface ReferenceMapper {
    @Select("select ref_docid from ref where src_docId = #{srcDocId} order by src_docId offset (#{page}-1)*#{pageSize} row fetch next #{pageSize} row only ")
    List<String> getRefDocId(@Param("srcDocId") String srcDocId, @Param("page")Integer page, @Param("pageSize")Integer pageSize);
}
